package xian.woniuxy.zh_generic.d;

/*
    泛型方法
 */

class Foo {
    public <T> T f1() {
        return null;
    }
}

public class App {
    public static void main(String[] args) {
        Foo f = new Foo();
        Integer x0 = f.<Integer>f1();

        // 自动类型识别
        Boolean x1 = f.f1();
        String x2 = f.f1();
        Integer x3 = f.f1();
    }
}
